home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.3 KB | 48 lines | [TEXT/GEOL] |
- Item 6377675 10-July-90 10:59PDT
-
- From: PERRY.G Gregg, Perry
-
- To: D2086 Efficient Field Svc, C Faith,PRT
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Page Setup Default Thread
-
- Alan,
-
- Last time I wanted to change the default Page Setup values for MacApp I ended
- up in the Reset method below. Though I was never clear about the naming
- conventions, f15-f0 contain some of the Page Setup goodies. The default Reset
- below contains examples of how to stuff the TXWord record.
-
- Giving you a start (i.e. no claim that this is the official way),
- Perry 'Loose Energy' Gregg
-
- P.S. You would do something like INHERITED Reset; {then stuff a value}.
-
- PROCEDURE TYourPrintHandler.Reset;
- TYPE
- TXWord = PACKED RECORD
- CASE INTEGER OF
- 0: (c1, c0: CHAR);
- 1: (b1, b0: SignedByte);
- 2: (f15, f14, f13, f12, f11, f10, f9, f8, f7, f6, f5, f4, f3, f2, f1, f0:
- BOOLEAN);
- 3: (i0: INTEGER);
- END;
- VAR
- didChange : BOOLEAN;
- aHPrint : Handle;
- BEGIN
- INHERITED Reset;
- aHPrint := fHPrint;
- IF gCouldPrint & (aHPrint<>NIL) THEN
- WITH TXWord(THPrint(aHPrint)^^.prStl.wDev) DO
- IF b1 = 3 THEN
- BEGIN
- f2 := FALSE;
- ValidatePrintRecord(didChange);
- END;
- END;
-
-